//
// Created by Administrator on 2022/11/6.
// 递归 累加
//

#include <iostream>
using namespace std;

int sum(int ret)
{
    if  (ret==1)
        return 1;
    else
        return ret+sum(ret-1);
}

int main()
{
   int num=100;
   int result = sum(num);
   cout<<result<<endl;
}